/**
 * Project Name: mms-provider-user
 * File Name: StatusCode
 * Package Name: com.scb.dev.mms.common
 * Date: 2018/11/27 12:06 PM
 * Copyright (c) 2018, Wang, Haoyue All Rights Reserved.
 */
package com.scb.dev.mms.common;

/**
 * ClassName: StatusCode
 * Description: 状态码 常量类
 * Date: 2018/11/27 12:06 PM
 *
 * @author Wang, Haoyue
 * @version V1.0
 * @since JDK 1.8
 */
public class StatusCode {

    /** fail flag */
    public static final Integer FAULT_FLAG = 0;
    /** success flag */
    public static final Integer SUCCESS_FLAG = 1;

    /** 没有权限 */
    public static final Integer NOPERMISS = 401;

    /** 权限不足 */
    public static final Integer PERMISSION_LESS = 402;

    /** 会话ing */
    public static final Integer LOGING = 299;

    /** 会话失效 */
    public static final Integer LOGINOUT = 400;


    /** 操作成功*/
    public static final Integer OPERATIONSUCCESS = 200;
    /** 查询成功 */
    public static final Integer FINDSUCCESS = 201;
    /** 添加成功 */
    public static final Integer ADDSUCCESS = 202;
    /** 删除成功 */
    public static final Integer DELETESUCCESS = 203;
    /** 更新成功 */
    public static final Integer UPDATESUCCESS = 204;
    /** 登录成功 */
    public static final Integer LOGINSUCCESS = 205;


    /** 操作失败*/
    public static final Integer OPERATIONERROR = 500;
    /** 查询失败 */
    public static final Integer FINDERROR = 501;
    /** 添加失败 */
    public static final Integer ADDERROR = 502;
    /** 删除失败 */
    public static final Integer DELETEERROR = 503;
    /** 更新失败 */
    public static final Integer UPDATEERROR = 504;
    /** 未查到数据 */
    public static final Integer FINDNULL = 505;
    /** 账户名为空 */
    public static final Integer ACCOUNTNAMENULL = 506;
    /** 账户不存在 */
    public static final Integer ACCOUNTNOTEXIST = 507;
    /** 密码错误 */
    public static final Integer PASSWORDERROR = 508;

    /** 退出成功 */
    public static final Integer TOLOGINOUT = 206;

    /** 程序异常 */
    public static final Integer EXCEPTIONERROR = 510;

    /** 缺少必填项 */
    public static final Integer LACKVALUE = 511;

    /** 字段重复 */
    public static final Integer DUPLICATIONERROR = 512;

    /** 无对应数据 */
    public static final Integer NORETRUNDATA = 513;

    /** 参数为空 */
    public static final Integer PARAMETERNULL = 514;

    /** 默认状态 */
    public static final Integer DEFAULT = 251;
}
